package viewbuilder

import org.junit.Test
import util.AssertableBuilder

class TablePageTestWithAssertableBuilder {

    @Test
    void oddRowsAreHighlighted() {

        def expect = new AssertableBuilder()
        expect.tr('class':'highlight')
        expect.tr('class':'')
        expect.tr('class':'highlight')
        expect.tr('class':'')

        expect.replay()

        TablePage page = new TablePage()
        page.render(expect, [1,2,3,4])

        expect.verify()
    }


}